﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace One.Models
{
    [Table("author")]
    public class Author
    {
        [Key]
        public int Id { get; set; }
        
        public string Name { get; set; }
        
        public string Desc { get; set; }
        
        public string WbName { get; set; }
        
        public string IsSettled { get; set; }
        
        public string SettledType { get; set; }
        
        public string Summary { get; set; }
        
        public string FansTotal { get; set; }
        
        public string WebUrl { get; set; }

        public virtual ICollection<Article> Articles { get; set; }

        /// <summary>
        /// 作为回答者的 问答
        /// </summary>
        public virtual ICollection<Answer> Answers { get; set; }

        /// <summary>
        /// 作为提问者的 问答
        /// </summary>
        public virtual ICollection<Answer> Asks { get; set; }
    }
}
